package net.zdreamer.shunyi.ui;

import android.app.Activity;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import net.zdreamer.shunyi.R;

public class YuLeXQAcivity extends Activity {
    private RelativeLayout title;
    private ImageView leftimg;
    private TextView titlecontent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_yu_le_xqacivity);
        init();
    }

    private void init() {
        leftimg = (ImageView) findViewById(R.id.leftimg);
        title = (RelativeLayout) findViewById(R.id.title_item);
        titlecontent = (TextView) findViewById(R.id.title_content);
        title.setBackgroundResource(R.drawable.newsbiaoti);
        leftimg.setImageResource(R.drawable.backimg);
        titlecontent.setText("娱乐");
        titlecontent.setTextColor(getResources().getColor(R.color.white));
        leftimg.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                YuLeXQAcivity.this.finish();
            }
        });
    }

}
